[XEND] Fix pygrub when run server-side on a domain with blktap disks.
authorEwan Mellor <ewan@xensource.com>
Sat, 28 Oct 2006 16:45:43 +0000 (17:45 +0100)
committerEwan Mellor <ewan@xensource.com>
Sat, 28 Oct 2006 16:45:43 +0000 (17:45 +0100)
Equivalent fix to xen-unstable 11706:bf0deb09facd847db87ab59ed377db6eb0f5a3ad.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/python/xen/xend/XendDomainInfo.py

index 46d4c78e22d78fa371cfe60cca7f703ac4423038..26dc09b737f5d6a5a08e08dc24d4d5f9cc9793d4 100644 (file)
@@ -1440,7 +1440,7 @@ class XendDomainInfo:
         blcfg = None
         # FIXME: this assumes that we want to use the first disk device
         for (n, c) in self.info.all_devices_sxpr():
-            if not n or not c or n != "vbd":
+            if not n or not c or not(n in ["vbd", "tap"]):
                 continue
             disk = sxp.child_value(c, "uname")
             if disk is None: